<%@ page language="java" contentType="text/html; charset=GBK"
    pageEncoding="GBK"%>
<%@ page import="com.unknow.article.service.impl.ArticleServiceImpl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>Insert title here</title>
</head>
<body>
	<table align="center">
	<%
		ArticleServiceImpl asi = new ArticleServiceImpl();
		java.util.List result = asi.queryAll();
		for(int i = 0; result.size() > i; i++) {
			com.unknow.article.entity.Article article = (com.unknow.article.entity.Article)result.get(i);
		%>
		<tr>
			<td><%=article.getId() %></td>
			<td><%=article.getTitle() %></td>
		</tr>
	<%
		}
	%>
	</table>
</body>
</html>